<tpl>
<div class="layui-fluid"><div class="layui-row layui-col-space15"><div class="layui-col-md12">
<div class="layui-card" id="body">
  <!--# include virtual="/lib/jump-top.html" -->
  <div class="layui-card-header">{{ d.title }}</div>
  <div class="layui-card-body">
    {{ d.headTip }}
    <form class="layui-form layui-form-pane" lay-filter="js-form">
      <input type="text" class="hide" name="unAutoSubmit" />
      <!-- {:token()} -->
      <div class="layui-inline">
        <!-- <label for="jsf-kword" class="layui-form-label">关键词</label> -->
        <div class="layui-input-inline" style="width: 200px;">
          <input type="text" id="jsf-kword" name="kword" class="layui-input" lay-require="true" required placeholder="{{ LL('ID | nick | account | phone | email') }}">
        </div>
      </div>
       <div class="layui-inline">
        <!-- <label for="jsf-role" class="layui-form-label">角色</label> -->
        <div class="layui-input-inline" style="width: 150px;">
          <select name="role" id="jsf-role" lay-filter="search"  lay-search>
            <option value="0">{{ LL('all role') }}</option>
            {{# layui.each( _rb.d.roles , function(i, e){ }}
            <option value="{{ e.id }}">{{ e.name }}</option>
            {{# }); }}
          </select>
        </div>
      </div>
      <!--# include virtual="/tpl/form-time-layui.html" -->
      <!--# include virtual="/tpl/form-search.html" -->
    </form>
    <table id="demo" lay-filter="index-table"></table>
  </div>
</div>
</div></div></div>
</tpl>

<lay>
<script type="text/html" id="toolbarDemo">
  <div class="block clearfix">
    <div class="layui-btn-group">
      <!--# include virtual="/tpl/a-add-dels-bans.html" -->
    </div>
  </div>
</script>
<script type="text/html" id="barDemo">
  <div class="layui-btn-group">
    <a data-href="{{ _rb.path }}/detail" data-params='"id":{{ d.id }}' class="layui-btn layui-btn-sm ajax-layer" title="{{ LL('look detail') }}"><i class="layui-icon layui-icon-username"></i>{{ L('detail') }}</a>
    <!--# include virtual="/tpl/a-edit-del.html" -->
  </div>
</script>

<script type="text/html" id="nameTpl">
  {{ _rb.avaImg(d.id,60) }}
  <a data-href="{{ _rb.path }}/detail" data-params='"id":{{ d.id }}' class="layui-table-link ajax-layer tooltip pointer" data-text="[{{ d.id }}] {{ d.name }}" title="{{ L('user') }} {{ d.name }} {{ L('detail') }}"> {{ d.nick }}</a>
</script>
<script type="text/html" id="timeTpl">
  {{ _rb.gettime2(d.reg_time) }}
</script>
<script type="text/html" id="phoneTpl">
  {{# if(d.phone_auth){ }} <i class="layui-icon layui-icon-auz" title="{{ LL('ed check') }}"></i>{{# } }} {{ d.phone }}
</script>
<script type="text/html" id="emailTpl">
  {{# if(d.email_auth){ }} <i class="layui-icon layui-icon-auz" title="{{ LL('ed check') }}"></i>{{# } }} {{ d.email }}
</script>
<script type="text/html" id="statusTpl">
  <form class="layui-form">
    <input type="checkbox" lay-filter="index-swith" data-id="{{ d.id }}" class="no-refresh layer-msg" {{# if(d.status > -1){ }} checked  {{#  } }} lay-skin="switch">
  </form>
</script>
<script type="text/html" id="roleTpl">
  <span class="layui-badge label-role-{{ d.role_id }}">{{ _rb.d.roles['i'+d.role_id]['name'] }}</span>
  {{# if(d.level) { }}
    {{ d.level }}{{ L('level') }}
  {{# } }}
</script>
<script type="text/html" id="rateTpl">
  {{ _rb.toFloat(d.rate*100,1) }}%
</script>
</lay>

<js>
<!--# include virtual="/user/indexUser.js" -->
</js>